package com.jzo2o.foundations.controller.inner;

import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.foundations.service.IRegionServeService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * \* User: chy
 * \* Date: 2025/9/30  14:44
 * \* Description:
 * \
 */
@RestController
@RequestMapping("/inner/serve")
@Api(tags = "内部接口 - 服务相关接口")
public class InnerServeController {

    @Resource
    private IRegionServeService regionServeService;

    /**
     * 根据服务id查询服务详情          这个接口主要给订单服务使用
     *
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    public ServeAggregationResDTO findById(@PathVariable("id") Long id) {
        return regionServeService.queryServeById(id);

    }
}
